From: Jasper St. Pierre Date: Sun, 17 Feb 2013 20:01:07 +0000 (-0500) Subject: windowManager: Fix fallback path for icon_geometry animation X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~4798 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=3205d1e16a5255daf635a7450c6ff05bae67b735;p=gnome-shell.git windowManager: Fix fallback path for icon_geometry animation It doesn't seem like this code was ever tested. https://bugzilla.gnome.org/show_bug.cgi?id=694052 --- diff --git a/js/ui/windowManager.js b/js/ui/windowManager.js index c36ff4763..b51f942cc 100644 --- a/js/ui/windowManager.js +++ b/js/ui/windowManager.js @@ -254,10 +254,12 @@ const WindowManager = new Lang.Class({ yScale = geom.height / actor.height; } else { let monitor = Main.layoutManager.monitors[actor.meta_window.get_monitor()]; - let xDest = monitor.x; - let yDest = monitor.y; + xDest = monitor.x; + yDest = monitor.y; if (Clutter.get_default_text_direction() == Clutter.TextDirection.RTL) xDest += monitor.width; + xScale = 0; + yScale = 0; } Tweener.addTween(actor,